
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<ui:composition template="template.xhtml"
                xmlns="http://www.w3.org/1999/xhtml"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:f="http://java.sun.com/jsf/core"
                xmlns:p="http://primefaces.org/ui"
                xmlns:ui="http://java.sun.com/jsf/facelets">



    <ui:define name="head">
        <h:head>

            <link rel="stylesheet" type="text/css" href="layout.css" media="screen, projection, tv " />
            <link rel="stylesheet" type="text/css" href="html.css" media="screen, projection, tv " />
            <link type="text/css" href="css/smoothness/jquery-ui-1.8.20.custom.css" rel="stylesheet" />

            <meta http-equiv="content-type" content="application/xhtml+xml; charset=UTF-8" />
            <meta name="author" content="fullahead.org - studio7designs.com" />
            <meta name="description" content="Site Description Here" />
            <meta name="keywords" content="keywords, here" />
            <meta name="robots" content="index, follow, noarchive" />
            <meta name="googlebot" content="noarchive" />
            <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>         
            
            <script type="text/javascript" src="js/jquery-1.7.2.min.js"></script>
            <script type="text/javascript" src="js/jquery-ui-1.8.20.custom.min.js"></script>
             <script type="text/javascript" src="js/locale-primefaces.js"></script>
            
        </h:head>
    </ui:define>
    <body>
        <ui:define name="menuDireito">
            <h:body>
                <div class="floatRight width73">
                    <h1>Novo professor</h1>
                    <h2>Dados pessoais:</h2>
                    <hr></hr>

                    <h:form>

                        <p>Nome:<br></br>
                            <h:inputText size="80" rendered="true" value="#{professor.nome}"></h:inputText>
                        </p>
                        <p>R.G:<br></br>
                            <h:inputText rendered="true" value="#{professor.RG}"></h:inputText>
                        </p>
                        <p>C.P.F.:<br></br>
                            <h:inputText rendered="true" value="#{professor.cpf}"></h:inputText>
                        </p>
                        <p>PIS/PASEP:<br></br>
                            <h:inputText rendered="true" value="#{professor.pis_paseb}"></h:inputText>
                        </p>
                        <p>Nº de matrícula:<br></br>
                            <h:inputText rendered="true" value="#{professor.matricula}"></h:inputText>
                        </p>
                        <br></br>
                        <h2>Contato:</h2>
                        <hr></hr>
                        <p>Endereço:<br></br>
                            <h:inputText size="80" rendered="true" value="#{professor.endereco}"></h:inputText>
                        </p>
                        <p>C.E.P.:<br></br>
                            <h:inputText rendered="true" value="#{professor.cep}"></h:inputText>
                        </p>
                        <p>Cidade:<br></br>
                            <h:inputText size="40" rendered="true" value="#{professor.cidade}"></h:inputText>
                        </p>
                        <p>Estado (UF):<br></br>
                            <h:inputText size="4" rendered="true" value="#{professor.uf}"></h:inputText>
                        </p>
                        <p>Telefone:<br></br>
                            <h:inputText rendered="true" value="#{professor.fone}"></h:inputText>
                        </p>
                        <p>Celular (opcional):<br></br>
                            <h:inputText rendered="true" value="#{professor.celular}"></h:inputText>
                        </p>
                        <p>E-mail:<br></br>
                            <h:inputText size="50" rendered="true" value="#{professor.email}"></h:inputText>
                        </p>
                        <br></br>
                        <h2>Informações Bancárias:</h2>
                        <hr></hr>
                        <p>
                            <label>Banco</label><br></br>
                            <h:selectOneListbox value="#{professor.banco}">
                                <f:selectItem itemValue="Banco do Brasil" itemLabel="Banco do Brasil" />
                                <f:selectItem itemValue="Bradesco" itemLabel="Bradesco" />
                                <f:selectItem itemValue="Caixa" itemLabel="Caixa" />
                                <f:selectItem itemValue="Itaú" itemLabel="Itaú" />
                                <f:selectItem itemValue="Santander" itemLabel="Santander" />
                            </h:selectOneListbox>
                            <p>Em caso de outro banco, qual?<br></br>
                                <h:inputText rendered="true" value="#{professor.outrobanco}"></h:inputText>
                            </p>
                        </p>
                        <p>Agência:<br></br>
                            <h:inputText rendered="true" value="#{professor.agencia}"></h:inputText>
                        </p>

                        <p>Data de admissão: <br></br>
                            <p:calendar locale="pt" pattern="dd/MM/yyyy" value="#{professor.admissao}"></p:calendar>
                        </p>

                        <p>Data de exoneração:<br></br>
                            <p:calendar locale="pt" pattern="dd/MM/yyyy" value="#{professor.exoneracao}"></p:calendar>
                        </p>
                        <p>RJ:<br></br>
                            <h:inputText rendered="true" value="#{professor.rj}"></h:inputText>
                        </p>
                        <p>Classe:<br></br>
                            <h:inputText rendered="true" value="#{professor.classe}"></h:inputText>
                        </p>
                        <p>
                            <label><u>Nível</u></label>    <br></br>
                            <h:selectOneRadio value="#{professor.nivel}">
                                <f:selectItem itemValue="A" itemLabel="A"  />
                                <f:selectItem itemValue="B" itemLabel="B" />
                            </h:selectOneRadio>
                        </p>
                        <p></p>

                        <p>
                            <br></br>  <u>Ativo</u>
                            <h:selectOneRadio style="text-align: right" value="#{professor.ativo}">
                                <f:selectItem itemValue="Sim" itemLabel="Sim"  />
                                <f:selectItem itemValue="Não" itemLabel="Não" />
                            </h:selectOneRadio>
                        </p>
                        <div style="text-align: center">
                            <h:commandButton value="Salvar" action="#{professor.aplica}"></h:commandButton>
                            &nbsp;
                            <h:commandButton value="Pré-visualizar" action="previsualizarCadastroProfessor"></h:commandButton>
                        </div>
                    </h:form>
                </div>

            </h:body>
        </ui:define>
    </body>
</ui:composition>